home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8548 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: gryphon.phoenix.net!usenet
  2. From: brucew@phoenix.net (Bruce Wedding)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Programming Question
  5. Date: Mon, 04 Mar 1996 23:59:58 GMT
  6. Organization: BranPaul Systems
  7. Message-ID: <4hg06e$7e3@gryphon.phoenix.net>
  8. References: <1996Mar3.164754.137341@forest>
  9. NNTP-Posting-Host: dial135.phoenix.net
  10. X-Newsreader: Moe's Newsreader    
  11.  
  12. In comp.lang.c
  13. ebromber@forest.drew.edu wrote:
  14.  
  15. >Below is part of the code for a password program which I wrote. However, 
  16. >wheneve I run the program, the "ENTER PASSWORD HERE" only appears after a 
  17. >carriage return is entered. In other words, I have to type the password in 
  18. >before it prints that message. If I hit return, it accepts that as the 
  19. >password. I wrote this program on a pc and used a MS-DOS compiler. Does 
  20. >anyone know why and how I can fix this?
  21. >     printf("ENTER PASSWORD HERE: ");
  22.         fflush(stdout);
  23.  
  24. Bruce D. Wedding                        Have Compiler, Will Travel!
  25.               Perspicacious Programming Performed Promptly
  26. Katy, Texas, USA, Planet Earth, Milkyway Galaxy, Known Universe
  27.  
  28.